SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 44901: LSMEANS DIFF option may terminate SAS if formatted CLASS variables have long lengths

DetailsAboutRate It

If you specify the DIFF option in the LSMEANS statement, and if you have one or more CLASS variables that are formatted and whose lengths sufficiently exceed the lengths of their formats, then SAS might terminate. However, the DIFF=ANOM option does not cause this problem. The affected procedures are listed in the About tab of this problem note.

The problem can be avoided by removing the DIFF option, or by removing the LSMEANS statement altogether. You may be able to retain the LSMEANS statement and DIFF option if you disassociate formats from the CLASS variables, or for variables with long lengths, replace them with variables with short lengths.

If you associate formats with variables by including FORMAT statements in your procedure code, you can simply remove the FORMAT statements to disassociate the formats from the variables. If the formats were associated with variables when creating or modifying the data set (this can be checked by running PROC CONTENTS on the data set), you can disassociate formats from variables by using a FORMAT statement that lists variables but no format. For example, these statements use PROC DATASETS to remove the format associated with variable X from the data set WORK.MYDATA:

     proc datasets; 
       modify mydata;
       format x; 
       run;


Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS/STATz/OS9.2212.19.2 TS2M39.3 TS1M2
Microsoft® Windows® for 64-Bit Itanium-based Systems9.2212.19.2 TS2M39.3 TS1M2
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.2212.19.2 TS2M39.3 TS1M2
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.2212.19.2 TS2M39.3 TS1M2
Microsoft Windows XP 64-bit Edition9.2212.19.2 TS2M39.3 TS1M2
Microsoft® Windows® for x649.2212.19.2 TS2M39.3 TS1M2
Microsoft Windows Server 2003 Datacenter Edition9.2212.19.2 TS2M39.3 TS1M2
Microsoft Windows Server 2003 Enterprise Edition9.2212.19.2 TS2M39.3 TS1M2
Microsoft Windows Server 2003 Standard Edition9.2212.19.2 TS2M39.3 TS1M2
Microsoft Windows Server 2003 for x649.2212.19.2 TS2M39.3 TS1M2
Microsoft Windows Server 20089.2212.19.2 TS2M39.3 TS1M2
Microsoft Windows Server 2008 for x649.2212.19.2 TS2M39.3 TS1M2
Microsoft Windows XP Professional9.2212.19.2 TS2M39.3 TS1M2
Windows 7 Enterprise 32 bit9.2212.19.2 TS2M39.3 TS1M2
Windows 7 Enterprise x649.2212.19.2 TS2M39.3 TS1M2
Windows 7 Home Premium 32 bit9.2212.19.2 TS2M39.3 TS1M2
Windows 7 Home Premium x649.2212.19.2 TS2M39.3 TS1M2
Windows 7 Professional 32 bit9.2212.19.2 TS2M39.3 TS1M2
Windows 7 Professional x649.2212.19.2 TS2M39.3 TS1M2
Windows 7 Ultimate 32 bit9.2212.19.2 TS2M39.3 TS1M2
Windows 7 Ultimate x649.2212.19.2 TS2M39.3 TS1M2
Windows Vista9.2212.19.2 TS2M39.3 TS1M2
Windows Vista for x649.2212.19.2 TS2M39.3 TS1M2
64-bit Enabled AIX9.2212.19.2 TS2M39.3 TS1M2
64-bit Enabled HP-UX9.2212.19.2 TS2M39.3 TS1M2
64-bit Enabled Solaris9.2212.19.2 TS2M39.3 TS1M2
HP-UX IPF9.2212.19.2 TS2M39.3 TS1M2
Linux9.2212.19.2 TS2M39.3 TS1M2
Linux for x649.2212.19.2 TS2M39.3 TS1M2
OpenVMS on HP Integrity9.2212.19.2 TS2M39.3 TS1M2
Solaris for x649.2212.19.2 TS2M39.3 TS1M2
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.